<template>
  <input type="text" :value="value" @input="handleInput" />
</template>

<script>
export default {
  name: "elInput",
  props: {
    value: String,
  },
  methods: {
    handleInput(e) {
      //   console.log(e.target.value);
      this.$emit("input", e.target.value);
      this.$dispatch("elFormItem", "changeValue");
    },
  },
};
</script>

<style></style>
